package com.headfirst.BehaviorMode.strategy.version3;

/**
 * @author sunhongguang
 * @create 2022-01-09-22:44
 */
public class ModelDuck extends Duck {

    public ModelDuck() {
        super.setQuackBehavior(new Quack());
        setFlyBehavior(new FlyNoWay());
    }

    @Override
    public void display() {
        System.out.println("我是一个模型鸭");
    }
}
